package com.ruoyi.deeplearn.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 模型部署对象 deep_model_deploy
 *
 * @author 任伟伟
 * @date 2022-12-10
 */
public class DeepModelDeploy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模块ID */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 状态：（0正常 1停用） */
    @Excel(name = "状态：", readConverterExp = "0=正常,1=停用")
    private Integer status;

    private Long dataTypeId;
    private String dataTypeName;
    private String dataTypeCode;

    private Long classifyTypeId;
    private String classifyTypeName;
    private String classifyTypeCode;

    /** 模型id */
    @Excel(name = "模型id")
    private Long modelId;

    /** 训练id */
    @Excel(name = "训练id")
    private Long trainTaskId;

    /** 服务地址 */
    @Excel(name = "服务地址")
    private String serviceUrl;

    private Long modelVersionId;//model_version_id

    public Long getModelVersionId() {
        return modelVersionId;
    }

    public void setModelVersionId(Long modelVersionId) {
        this.modelVersionId = modelVersionId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    public Long getDataTypeId() {
        return dataTypeId;
    }

    public void setDataTypeId(Long dataTypeId) {
        this.dataTypeId = dataTypeId;
    }

    public String getDataTypeName() {
        return dataTypeName;
    }

    public void setDataTypeName(String dataTypeName) {
        this.dataTypeName = dataTypeName;
    }

    public String getDataTypeCode() {
        return dataTypeCode;
    }

    public void setDataTypeCode(String dataTypeCode) {
        this.dataTypeCode = dataTypeCode;
    }

    public Long getClassifyTypeId() {
        return classifyTypeId;
    }

    public void setClassifyTypeId(Long classifyTypeId) {
        this.classifyTypeId = classifyTypeId;
    }

    public String getClassifyTypeName() {
        return classifyTypeName;
    }

    public void setClassifyTypeName(String classifyTypeName) {
        this.classifyTypeName = classifyTypeName;
    }

    public String getClassifyTypeCode() {
        return classifyTypeCode;
    }

    public void setClassifyTypeCode(String classifyTypeCode) {
        this.classifyTypeCode = classifyTypeCode;
    }

    public void setModelId(Long modelId)
    {
        this.modelId = modelId;
    }

    public Long getModelId()
    {
        return modelId;
    }
    public void setTrainTaskId(Long trainTaskId)
    {
        this.trainTaskId = trainTaskId;
    }

    public Long getTrainTaskId()
    {
        return trainTaskId;
    }
    public void setServiceUrl(String serviceUrl)
    {
        this.serviceUrl = serviceUrl;
    }

    public String getServiceUrl()
    {
        return serviceUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("name", getName())
            .append("code", getCode())
            .append("status", getStatus())
            .append("modelId", getModelId())
            .append("trainTaskId", getTrainTaskId())
            .append("serviceUrl", getServiceUrl())
            .toString();
    }
}
